<?php
class My_View_Helper_NumEs extends Zend_View_Helper_Abstract
 {
       

    public function NumEs($value,$decimales=2,$signo_decimal=',',$signo_miles='.')
    {
        
        if(is_numeric($value)){

            $locale=Zend_Registry::get('Zend_Locale');
            $value = Zend_Locale_Format::toNumber($value, array('locale' => $locale,'precision' =>$decimales));

        }
       
        
          return $value;  
        
    }   
}